﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

class Resource
{
    private bool used;
    private string data;

    public Resource(string data)
    {
        this.data = data;
        this.used = false;
    }

    public bool Available
    {
        get
        {
            return !used;
        }
    }
    public string Data
    {
        get
        {
            return this.data;
        }
    }
    
    public void Use()
    {
        this.used = true;
    }
    public void Release()
    {      
        this.used = false;        
    }
}

